export default function useMainInvoke(type: string, event: string, data?: object) {
  window.electron.ipcRenderer.invoke('renderer-to-main', {
    type,
    event,
    data
  })
}
